//
//  BaseViewController.m
//  MXの衣柜
//
//  Created by 马霄 on 15/8/22.
//  Copyright (c) 2015年 霄 马. All rights reserved.
//

#import "BaseViewController.h"
#import "MBProgressHUD.h"
@interface BaseViewController ()
@property (nonatomic, retain) MBProgressHUD *HUD;
@end

@implementation BaseViewController
- (void)dealloc
{
    [_alertViewBack release];
    [_HUD release];
    [super dealloc];
}



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

-(void)uiActivityindicatorviewStart
{
    self.alertViewBack =[[UIView alloc]initWithFrame:CGRectMake(0, 0, GAwidth, GAheight)];
    self.alertViewBack.backgroundColor =[UIColor whiteColor];
    self.HUD = [MBProgressHUD showHUDAddedTo:self.alertViewBack animated:YES];
//    self.HUD.labelText = @"正在努力的给您加载";
    [self.HUD show:YES];
    
    [self.view addSubview:self.alertViewBack];
    [_alertViewBack release];
    
}
-(void)uiActivityindicatorviewEnd
{
    [self.alertViewBack removeFromSuperview];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
